<?php

class Form_Comment extends Zend_Form
{

    public function init()
    {
        $this->setName('Comment');
        $this->setMethod('post');
        
        $text = new Zend_Form_Element_Textarea('text');
        $text->setLabel('Comment:')
        		->setAttribs(array(
        			'rows' => 5,
        			'cols' => 30,
        			'id'   => 'comment-editor'
        		))
        		->addFilter('StringTrim')
        		->addFilter('StripTags');
        		
        $submit = new Zend_Form_Element_Submit('comment');
        $submit->setLabel('Add comment');
        
        $this->addElements(array($text,$submit));
    }


}

